#!/bin/sh

OPT=-O2
DEBUG=-g
CFLAGS=-std=gnu99 -Wall -Wno-format -fPIC $(OPT) $(DEBUG)

CC=gcc


OBJS=libtimers.o 

all:  libtimers.a libtimers.so


libtimers.so: $(OBJS)
	$(CC) -shared -o $@ $^  


libtimers.a: $(OBJS)
	ar cqs $@ $^  


%.o: %.c
	$(CC) -c $(CFLAGS) -o $@ $^ 


clean:
	rm -rf *.o libtimers.so libtimers.a 

rebuild: clean all


